package com.example.webservice_s;

import org.springframework.ws.WebServiceException;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.net.MalformedURLException;
import java.rmi.RemoteException;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/07/10/14:04
 * @Description: WebService接口
 */
@WebService(targetNamespace = "http://example.com/webservice_s")
public interface InvoiceWebService {

    /**
     * 页面输出内容方法
     *
     * @param invData 参数
     * @return 返回处理数据
     * @throws WebServiceException
     * @throws MalformedURLException
     * @throws RemoteException
     */
    // operationName客户端调用的名称
    @WebMethod(action = "http://example.com/webservice_s" + "/PaperOutputInvoice", operationName = "PaperOutputInvoice")
    @WebResult(name = "PaperOutputInvoiceResult", targetNamespace = "http://example.com/webservice_s")
    public String PagerOutputInvoice(@WebParam(name = "invData", targetNamespace = "http://example.com/webservice_s") String invData) throws WebServiceException, MalformedURLException, RemoteException;
}
 